package cn.wolfcode.rbac.query;
/*
分页查询
 */
import cn.wolfcode.rbac.domain.Department;
import cn.wolfcode.rbac.domain.Employee;
import lombok.Getter;
import lombok.Setter;
import org.springframework.util.StringUtils;
@Getter@Setter
public class QueryObject extends EmployeeQuery{
    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public int getCurrentPage() {
        return this.currentPage;
    }

    private int currentPage = 1;

    public int getPageSize() {
        return this.pageSize;
    }

    private int pageSize = 3;
    private String keyword;//接受姓名和邮箱模糊查询的值，关键字

    //客户列表模糊查询
    private Integer status;
    private Long sellerId;
    private Integer type;
    public int getStart() {
        return (this.currentPage - 1) * this.pageSize;
    }

    public String getKeyword() {
        return StringUtils.hasLength(this.keyword) ? this.keyword : null;
    }
//    private Long dept_id;
//
//    public void setDept_id(Long dept_id) {
//        this.dept_id = dept_id;
//    }
//
//    public Long getDept_id() {
//        return dept_id;
//    }
}
